<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="java.util.List" %>
<%@ page import="com.knowledge.model.User" %>
<%
	String userId = (String)request.getAttribute("userId");	
	String loginId = (String)request.getAttribute("loginId");
	String isFriend = (String)request.getAttribute("isFriend");
	List<User> friends = (List<User>)request.getAttribute("friendList");
	String fCount = (String)request.getAttribute("friendCount");
%>
<div class="left-column-holder">
	<div class="left-column">
		<div class="profile-image">
			<img src="photos/head_<%=userId %>.jpg"/>
		</div>
		<%	if(isFriend.equalsIgnoreCase("false")){ %>
		<div class="profile-actions" style="text-align:center">
			<a class="action guide" href="javascript:void(0);"></a>
			<a class="action" href="ApplyAddFriend.action?userId=<%=userId%>&loginId=<%=loginId%>">加为好友</a>
			<%--<a class="action" href="/BasicInfo.do?userId=5">编辑我的资料</a>--%>
		</div>
		<%	}%>
		
		<div class="box-holder">
			<div class="profile-share box">
				<h4 class="box-header">
					<span>好友(<%=fCount %>)</span>
					<small>
						<a href="friends.jsp?userId=<%=userId %>">查看全部</a>
					</small>
				</h4>
				
				<div class="box-body">
					<div class="clearfix">
						<ul class="people-list">
						<%
							if(friends != null){
								for(User f: friends){
						%>
							<li>
								<a href="profile.action?userId=<%=f.getId() %>&loginId=<%=loginId %>"
									title="查看<%=f.getName() %>的个人主页"
									style="background-image: url(avatar/avatar_<%=f.getId() %>.jpg);"></a>
								<span><a href="profile.action?userId=<%=f.getId() %>&loginId=<%=loginId %>">
									<%=f.getName() %>
								</a>
								</span>
							</li>
						<%		}
							}
						%>
						
						</ul>
					</div>
				</div>
			</div>
		</div>		
	</div>
</div><%--


<div class="box-holder">
			<div class="profile-share box">
				<h4 class="box-header">
					<span>分享</span>
					<small> <a href="/ShareList.do">查看全部</a> </small>
				</h4>

				<div class="box-body">
					<ul class="icon-list" style="text-align:left">
						<li style="background-image: url('img/blog.gif');">
							<a href="/Share.do" title="">我的大学</a>
							<span class="small">12月19日 09:28</span>
						</li>

						<li style="background-image: url('img/blog.gif');">
							<a href="/Share.do" title="">史上最全的小白兔的故事~（郁闷的时候专用）</a>
							<span class="small">12月11日 22:39</span>
						</li>

						<li style="background-image: url('img/blog.gif');">
							<a href="/Share.do" title="">史上最全的小白兔的故事~（郁闷的时候专用）</a>
							<span class="small">12月11日 22:39</span>
						</li>

						<li style="background-image: url('img/blog.gif');">
							<a href="/Share.do?" title="">there will be mud</a>
							<span class="small">12月11日 18:40</span>
						</li>

						<li style="background-image: url('img/blog.gif');">
							<a href="/Share.do?" title="">there will be mud</a>
							<span class="small">12月11日 18:40</span>
						</li>
					</ul>
				</div>
			</div>
		</div>--%>